<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>锐信内容管理系统-修改密码</title>
<%@include file="/WEB-INF/pages/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/screen.css" /> 
<link rel="stylesheet" type="text/css" href="${ctx}resources/css/list.css" />
<script type="text/javascript" src="${ctx}resources/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}resources/js/messages_cn.js"></script>
</head>
<style>
	.sing {
	width: 200px;
	height: 25px;
}
input{
	border:#999 1px solid;
}
</style>
<script type="text/javascript">
$().ready(function() {
	$("#pwd").val("");
	$("#signupForm").validate({
		rules: {
			pwd: {
				required: true,
				rangelength:[6,12],
				remote:{
					　　 url:"${ctx}/account/checkPwd.htm", 
					   dataType:"json",
					   type:"post",
					　　 data:{
						 	pwd:function(){
						 		return $("#pwd").val();
						 	}
					 	}
					　 }
			},
			newpwd: {
				required: true,
				rangelength:[6,12]
			},
			repwd: {
				required: true,
				rangelength:[6,12],
				equalTo: "#newpwd"
			}
		},
		messages: {
			pwd: {
				required: "原始密码不能为空！",
				rangelength:"密码长度应该在6至12位",
				remote:"原始密码不正确！"
			},
			newpwd: {
				required: "新密码不能为空！",
				rangelength: "密码长度密码在6至12位！"
			},
			repwd: {
				required: "确认密码不能为空！",
				rangelength: "密码长度密码在6至12位！",
				equalTo: "新密码与确认密码不一致！"
			}
		}
	});


});
</script>
<body>
<div align="center" style="padding-top:50px;">
	<form  id="signupForm" method="post" action="${ctx}account/modifyPwd.htm">
		<table  width="95%" cellpadding="0" cellspacing="1" align="center" id="bordertable">
		<tr height="40px;"  class="tr0">
			<td width="50%" style="padding-right: 50px;text-align: right;"><label>原始密码:</label></td>
			<td width="50%"><input name="pwd" type="password" id="pwd"  class="sing"/></td>
		</tr>
		<tr height="40px;"  class="tr0">
			<td style="padding-right: 50px;text-align: right;"><label for="password">新密码:</label></td>
			<td><input  name="newpwd" id="newpwd" type="password" class="sing" /></td>
		</tr>
		<tr height="40px;"  class="tr0">
			<td style="padding-right: 50px;text-align: right;"><label for="confirm_password">确认密码:</label></td>
			<td><input id="repwd" name="repwd" type="password" class="sing" /></td>
		</tr>
		<tr height="60px;"  class="tr0">
			<td style="padding-right: 20px;text-align: right;"><input class="button" type="submit" value="提交"/></td>
			<td  style="padding-left: 20px;text-align: left;"><input class="button"  type="reset" value="取消" onclick="javascript:history.back();"/></td>
		</tr>
		</table>
</form>
	  
</div>
</body>
</html>